package com.lely.result;

import lombok.Data;

@Data
public class Response {

    public static final String OK = "200";
    public static final String ERROR = "-100";

    private String rspCode;
    private String rspMsg;
    private Object data;

    public Response() {
    }

    public Response(Object data) {
        this.rspCode = "200";
        this.rspMsg = "操作成功";
        this.data = data;
    }

    public Response(String rspCode, Object data) {
        this.rspCode = rspCode;
        this.data = data;
    }

    public Response(String rspCode, String rspMsg, Object data) {
        this.rspCode = rspCode;
        this.rspMsg = rspMsg;
        this.data = data;
    }
}